package com.codi.bus.core.dao;

import com.codi.base.dao.BaseDAO;
import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.FundCombination;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 亲，写个类注释呗
 * @author wangzhenhao
 * @date 2017-11-07 14:03
 */
public interface FundCombinationDao extends BaseDAO<FundCombination> {
    List<FundCombination> queryFundCombinations();

    List<FundCombination> queryThreeFundCombinations();

    FundCombination queryByCombinationCode(String combinationCode);

    List<FundCombination> queryPortfolio(List<String> portfolioCodes);

    List<FundCombination> queryAll();

    Page<FundCombination> query(Pageable pageable);

    int addPortfolio(FundCombination fundCombination);

    int updatePortfolio(FundCombination fundCombination);

    int deleteByCombinationCode(String combinationCode);

    FundCombination queryByPrimaryKey(Long combinationId);
}
